package pacman.entries.pacman.ml.destination_features;

import pacman.game.Game;
import pacman.game.Constants.DM;

public class DistanceDestinationFeature extends DestinationFeature {

	@Override
	public float EvaluateDestination(Game game, int destIndex) {
		int playerIndex = game.getPacmanCurrentNodeIndex();
		double distance = game.getDistance(playerIndex, destIndex, DM.PATH);
		//double distance = game.getDistance(playerIndex, destIndex, game.getPacmanLastMoveMade(), DM.PATH);
		
		float value = DestinationFeature.FeatureDistance(distance);
		
		return value;
	}

}
